#ifndef _ICOLLIABLEOBJECT_H
#define _ICOLLIABLEOBJECT_H


#include "windows.h"
#include "d3d9.h"

//-------------------------------------//
//		Class IColliableObject		   //
//-------------------------------------//
class IColliableObject 
{
public:
	//--------------------------------------------//
	//	Constructor and Destructor for this class //
	//--------------------------------------------//
	IColliableObject			(){};
	~IColliableObject			(){};

	//--------------------------------//
	//	Public methods for this class //
	//--------------------------------//
	virtual float	GetXPos					( );
	virtual float	GetYPos					( );
	virtual float	GetPrevXPos				( );
	virtual float	GetPrevYPos				( );
	virtual RECT	GetBoundBox				( );

	virtual int		GetWidth				( );
	virtual int		GetHeight				( );

	// Collision checking method
	virtual bool	IsCollision				( IColliableObject obj );

protected:
	//-------------------------------------//
	//	Protected variables for this class //
	//-------------------------------------//
	float	m_Xpos;
	float	m_Ypos;
	int		m_nWidth;
	int		m_nHeight;

	float	m_XPrevPos;
	float	m_YPrevPos;

	RECT	m_RectBoundBox;
};

#endif